package com.elysia.newsservice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.elysia.newsservice.domain.entity.VersionUpdateItem;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface VersionUpdateItemMapper extends BaseMapper<VersionUpdateItem> {
    /**
     * 根据版本id删除关联的更新明细
     */
    @Delete("DELETE FROM version_update_item WHERE version_id = #{versionId}")
    void deleteByVersionId(Long versionId);
}
